package com.jiazhong.递归;

import java.util.Scanner;

public class Monkey {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int day= sc.nextInt();
        Peach p=new Peach();
        int peach= p.getPeach(day);
        System.out.println("第"+day+"天有"+peach+"个peach");
    }
}

class Peach {
    public int getPeach(int day){
        int peach;
        if (day==10)
            peach=1;
        else if (day>=1&&day<=9)
            peach=(getPeach(day+1)+1)*2;
        else {
            System.out.println("桃子没了");
            peach=0;
        }
        return peach;
    }
}
